<%@ Page language="c#" Inherits="Dimok.Aspx.Manager.Underwriting.Technicians" CodeFile="Technicians.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<head>
<title>Brokers</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<?XML:NAMESPACE PREFIX="DIMOK"/>
<?IMPORT namespace="DIMOK" implementation="/include/htc/datagrid.htc">
<script src="/include/common.js"></script>
<script src="/include/RDS.js"></script>
<script src="/include/soap.js"></script>
<script src="/include/XML.js"></script>
</head>
<body style="background-color:menu;" bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0" onload="window.focus()">
<DIMOK:htcDatagrid id="dtg" caption="Technitians" allowEdit="true" allowAdd="true" allowDelete="true"
				style="width:1%;overflow-x:visible"
				hiddenFields=""
				onDelete="deleteRecord('Technician_Delete')"
				onEdit="editRecord('Technician_Update')"
				onAdd="addRecord('Technician_Add')"
>
		<SELECTS id="DealerID ">
			<ASP:LITERAL ID="ltrDealers" Runat="server"></ASP:LITERAL>
		</SELECTS>
		<RS>
			<asp:Literal ID="ltrTechnicians" Runat="server"></asp:Literal>
		</RS>
</DIMOK:htcDatagrid>
</body>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
</html>
<script>
initWS("Administration","Administration.asmx");
setTimeout(function(){cropWindow();},1000);
function deleteRecord(webMethod){
	var rs = event.rs;
	if( !checkWS() || !confirm("Delete "+rs("Name")+"?") )event.returnValue = false;
	var ret = WS(CO(webMethod),_getID());
	if(showSOAPError(ret)) return event.returnValue = false;
}
function editRecord(webMethod){
	if(!checkWS()) event.returnValue = false;
	var ret = WS(CO(webMethod),_getID(),event.fieldName,event.fieldValue);
	if(showSOAPError(ret)) return event.returnValue = false;
}
function addRecord(webMethod){
	if(!checkWS()) return event.returnValue = false;
	var rs = event.rs;
	var ret = WS(CO(webMethod),getDSFromRS(rs,"xmlAdd"));
	if( showSOAPError(ret) )return event.returnValue = false;
	_getID(ret.value);
}
// **** Properties *****
function _getID(id){
	if( arguments.length > 0 )event.rs("ID").value = id;
	return event.rs("ID").value;
}
</script>
